#include "stdafx.h"
#include <afxdllx.h>

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

static AFX_EXTENSION_MODULE ResourceDllDLL = { NULL, NULL };

extern "C" int APIENTRY
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
	UNREFERENCED_PARAMETER(lpReserved);
	if (dwReason == DLL_PROCESS_ATTACH)	{
		if (!AfxInitExtensionModule(ResourceDllDLL, hInstance))
			return 0;
		new CDynLinkLibrary(ResourceDllDLL);
	} else if (dwReason == DLL_PROCESS_DETACH) {
		AfxTermExtensionModule(ResourceDllDLL);
	}
	return 1;   // ok
}
